package com.nxmu.hire.service;

import com.github.pagehelper.PageInfo;
import com.nxmu.hire.common.exception.ServiceException;
import com.nxmu.hire.model.Publicity;
import com.nxmu.hire.vo.FindPublishByPageResVo;

import java.io.File;
import java.io.InputStream;
import java.util.List;

public interface PublicityService {



    /**
     * 添加发布信息
     * @param addPublicity
     * @param inputStream
     */
    void save(Publicity publicity, InputStream inputStream, File targetFile) throws ServiceException;

    /**
     * 查询公示列表
     * @param headLine
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Publicity> findPublishByPageAndCondition(String headLine, Integer pageNum, Integer pageSize);

    List<FindPublishByPageResVo> converterPublicityListToFindPublishByPageResVoList(List<Publicity> list);
}
